package com.ruoyi.system.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/** 帖子创建请求参数 */
@ApiModel(value = "PostsCreateVo", description = "创建帖子请求VO")
@Data
public class PostsCreateVo {
    @NotNull(message = "用户不能为空")
    @ApiModelProperty(value = "用户ID", required = true)
    private String userId;
    @NotBlank(message = "内容不能为空")
    @Size(max = 1000, message = "内容长度不能超过1000字符")
    @ApiModelProperty(value = "帖子内容", required = true)
    private String content;
    @ApiModelProperty(value = "图片URL数组")
    private List<String> images;
    @ApiModelProperty(value = "标签数组")
    private List<String> tags;
    @ApiModelProperty(value = "位置信息")
    private String location;
    @NotNull(message = "可见范围不能为空")
    @ApiModelProperty(value = "可见范围：1公开/2好友/3私密", required = true)
    private Integer visibility;
    @ApiModelProperty(value = "媒体类型：1图片/2视频")
    private Integer mediaType;
    @ApiModelProperty(value = "文件总大小（字节）")
    private Long sizeBytes;


}
